package com.youlu.campus.admin.user.controller;


import com.youlu.campus.entity.VO.req.UserPointsQuerVO;
import com.youlu.campus.service.visitor.UserPointsService;
import com.yuelin.infrastructure.quantum.common.QResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class UserPointController {


    @Autowired
    private UserPointsService userPointsService;

    /**
     * 积分明细
     *
     * @param userPointsQuery
     * @return
     */
    @PostMapping("/user-point/detail")
    public QResult pointDetail(@RequestBody UserPointsQuerVO userPointsQuery) {
        return QResult.success(userPointsService.list(userPointsQuery));
    }
}
